//serverRun.cc
#include"select_server.hpp"
#include<string>

static void Usage(std::string proc)
{
    std::cerr<<"Usage::"<<proc<<"proc"<<std::endl;
}
int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        Usage(argv[0]);
        exit(1);
    }
    int port =atoi(argv[1]);
    SelectServer* svr=new SelectServer(port);
    svr->InitSelectServer();
    svr->Run();
    return 0;

}
